home *** CD-ROM | disk | FTP | other *** search
- Path: woepc11.physik.fu-berlin.DE!root
- From: Sebastian Thees <zeppo@woepc11.physik.fu-berlin.de>
- Newsgroups: comp.lang.c
- Subject: ??? communication between tow independent processes
- Date: Thu, 11 Apr 1996 14:20:18 +0200
- Organization: Physikdepartment @ FU-Berlin
- Message-ID: <316CF902.4FCCA25D@woepc11.physik.fu-berlin.de>
- NNTP-Posting-Host: woepc11.physik.fu-berlin.de (130.133.3.172)
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- NNTP-Posting-User: root
- X-Access: 16 17 18
- X-Mailer: Mozilla 2.01 (X11; I; Linux 1.3.75 i586)
- CC: need, help, !!!
-
- Hello,
-
- I am working on a Linux PC under gnu gcc and have the following
- generell problem:
-
- I would like to write a program that is able to anser requests !!,
- not only one, (for Example: is this String an element of the database
- xxx) comming from an other independent program.
-
- What I did up to now is some rudimeterial try's via the call popen(...).
- and STIO (fscan).
-
- My problem is that this only allows me to have one cyrcle of
- kommunitation: The program which needs information starts the
- information-program via popen with the thinks it wants to tell as a
- parameterstring and then, the information-program delivers the anser via
- STIO and dies.
-
- But this is ecatly that what I do not want. I want to run the
- information-program the whole time in the background and never die. even
- if the system is going down ...
-
- I think I have to setup the kommunication between the programs in a
- comletly diffrent way ( open,..socket ?,...socketpairs ?.. what is this
- exatly...), but I do not now which is the right one.
-
- So, is there anybody out there who can give me not the complet solution,
- but who can bring me on the right way? maybe you can give me some good
- hints, specialy where I can get more Information on my problem.
-
- it would be fine - thanks and by
-
- Z.
-